#ifndef SEGYPROPERDIALOG_H
#define SEGYPROPERDIALOG_H

#include <QDialog>
#include "datatype/segy.h"
#include "stdio.h"
#include "QMessageBox"
namespace Ui {
class SegyProperDialog;
}

class SegyProperDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SegyProperDialog(QWidget *parent = 0);
    ~SegyProperDialog();
    void setFileName(QString fileName);
    float getFreq();
    float getTime();
    int getTraceNum() ;
    int getTraceLength();
    int getBeginTrace();
    int getEndTrace()  ;
    float getBeginTime();
    float getEndTime();
    int getTotalTime();


private slots:
    void on_box_Segy_clicked(bool checked);
    void on_button_Commit_clicked();
    void on_button_Cancel_clicked();

private:
    Ui::SegyProperDialog *ui;
    QString fileName;
    float freq;
    float time;
    int traceNum ;
    int traceLength;
    float beginTime ;
    float endTime;
    int beginTrace;
    int endTrace  ;
    int totalTime;
};

#endif // SEGYPROPERDIALOG_H
